Skip to content

Conversation

@vivian-az
Copy link

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Description

This change adds support for latestVersionReferences in both create and get operations for Image Builder resources., which is now supported as part of a recent EC2 Image Builder release: EC2 Image Builder now supports auto-versioning and enhances Infrastructure as Code experience.

Relations

Relates #45346

References

EC2 Image Builder now supports auto-versioning and enhances Infrastructure as Code experience
LatestVersionReferences Object
CreateComponent ResponseSyntax GetComponent ResponseSyntax
CreateImage ResponseSyntax GetImage ResponseSyntax
CreateContainerRecipe ResponseSyntax GetContainerRecipe ResponseSyntax
CreateImageRecipe ResponseSyntax GetImageRecipe ResponseSyntax
CreateWorkflow ResponseSyntax GetWorkflow ResponseSyntax

Output from Acceptance Testing

TF_ACC=1 go test ./internal/service/imagebuilder/... -v -count 1 -parallel 20 -run='TestAccImageBuilder.*_basic' 
2025/12/02 22:55:24 Creating Terraform AWS Provider (SDKv2-style)...
2025/12/02 22:55:24 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccImageBuilderComponent_basic
=== PAUSE TestAccImageBuilderComponent_basic
=== RUN   TestAccImageBuilderContainerRecipe_basic
=== PAUSE TestAccImageBuilderContainerRecipe_basic
=== RUN   TestAccImageBuilderDistributionConfiguration_basic
=== PAUSE TestAccImageBuilderDistributionConfiguration_basic
=== RUN   TestAccImageBuilderImagePipeline_basic
=== PAUSE TestAccImageBuilderImagePipeline_basic
=== RUN   TestAccImageBuilderImageRecipe_basic
=== PAUSE TestAccImageBuilderImageRecipe_basic
=== RUN   TestAccImageBuilderImage_basic
=== PAUSE TestAccImageBuilderImage_basic
=== RUN   TestAccImageBuilderInfrastructureConfiguration_basic
=== PAUSE TestAccImageBuilderInfrastructureConfiguration_basic
=== RUN   TestAccImageBuilderLifecyclePolicy_basic
=== PAUSE TestAccImageBuilderLifecyclePolicy_basic
=== RUN   TestAccImageBuilderWorkflow_basic
=== PAUSE TestAccImageBuilderWorkflow_basic
=== CONT  TestAccImageBuilderComponent_basic
=== CONT  TestAccImageBuilderImage_basic
=== CONT  TestAccImageBuilderImagePipeline_basic
=== CONT  TestAccImageBuilderInfrastructureConfiguration_basic
=== CONT  TestAccImageBuilderDistributionConfiguration_basic
=== CONT  TestAccImageBuilderLifecyclePolicy_basic
=== CONT  TestAccImageBuilderContainerRecipe_basic
=== CONT  TestAccImageBuilderWorkflow_basic
=== CONT  TestAccImageBuilderImageRecipe_basic
--- PASS: TestAccImageBuilderDistributionConfiguration_basic (19.80s)
--- PASS: TestAccImageBuilderWorkflow_basic (23.53s)
--- PASS: TestAccImageBuilderContainerRecipe_basic (23.73s)
--- PASS: TestAccImageBuilderComponent_basic (24.16s)
--- PASS: TestAccImageBuilderImageRecipe_basic (24.25s)
--- PASS: TestAccImageBuilderInfrastructureConfiguration_basic (30.51s)
--- PASS: TestAccImageBuilderLifecyclePolicy_basic (30.81s)
--- PASS: TestAccImageBuilderImagePipeline_basic (32.57s)
--- PASS: TestAccImageBuilderImage_basic (864.36s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/imagebuilder	864.529s
TF_ACC=1 go test ./internal/service/imagebuilder/... -v -count 1 -parallel 20 -run=TestAccImageBuilder.\*DataSource_arn
2025/12/02 22:51:40 Creating Terraform AWS Provider (SDKv2-style)...
2025/12/02 22:51:40 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccImageBuilderComponentDataSource_arn
=== PAUSE TestAccImageBuilderComponentDataSource_arn
=== RUN   TestAccImageBuilderContainerRecipeDataSource_arn
=== PAUSE TestAccImageBuilderContainerRecipeDataSource_arn
=== RUN   TestAccImageBuilderDistributionConfigurationDataSource_arn
=== PAUSE TestAccImageBuilderDistributionConfigurationDataSource_arn
=== RUN   TestAccImageBuilderImagePipelineDataSource_arn
=== PAUSE TestAccImageBuilderImagePipelineDataSource_arn
=== RUN   TestAccImageBuilderImageRecipeDataSource_arn
=== PAUSE TestAccImageBuilderImageRecipeDataSource_arn
=== RUN   TestAccImageBuilderInfrastructureConfigurationDataSource_arn
=== PAUSE TestAccImageBuilderInfrastructureConfigurationDataSource_arn
=== CONT  TestAccImageBuilderComponentDataSource_arn
=== CONT  TestAccImageBuilderImagePipelineDataSource_arn
=== CONT  TestAccImageBuilderInfrastructureConfigurationDataSource_arn
=== CONT  TestAccImageBuilderImageRecipeDataSource_arn
=== CONT  TestAccImageBuilderDistributionConfigurationDataSource_arn
=== CONT  TestAccImageBuilderContainerRecipeDataSource_arn
--- PASS: TestAccImageBuilderImageRecipeDataSource_arn (18.95s)
--- PASS: TestAccImageBuilderContainerRecipeDataSource_arn (19.17s)
--- PASS: TestAccImageBuilderComponentDataSource_arn (19.51s)
--- PASS: TestAccImageBuilderDistributionConfigurationDataSource_arn (22.88s)
--- PASS: TestAccImageBuilderInfrastructureConfigurationDataSource_arn (25.28s)
--- PASS: TestAccImageBuilderImagePipelineDataSource_arn (27.23s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/imagebuilder	27.402s
...

@vivian-az vivian-az requested a review from a team as a code owner December 2, 2025 23:15
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/imagebuilder Issues and PRs that pertain to the imagebuilder service. size/XL Managed by automation to categorize the size of a PR. labels Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-triage Waiting for first response or review from a maintainer. service/imagebuilder Issues and PRs that pertain to the imagebuilder service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant